package com.ruoyi.crm.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 进货对象 sys_goods_in
 * 
 * @author ruoyi
 * @date 2022-12-11
 */
public class SysGoodsIn extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 编号 */
    @Excel(name = "编号")
    private String no;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String name;

    /** 数量 */
    @Excel(name = "数量")
    private Long number;

    /** 单位 */
    @Excel(name = "单位")
    private String unit;

    /** 渠道价 */
    @Excel(name = "渠道价")
    private BigDecimal wayPrice;

    /** 市场价 */
    @Excel(name = "市场价")
    private BigDecimal marketPrice;

    /** 总价(渠道价) */
    @Excel(name = "总价(渠道价)")
    private BigDecimal totalWayPrice;

    /** 总价(市场价) */
    @Excel(name = "总价(市场价)")
    private BigDecimal totalMarketPrice;

    /** 进货时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "进货时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date buyTime;

    /** 到货时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "到货时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date arriveTime;

    /**  */
    private Integer deleted;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setNo(String no) 
    {
        this.no = no;
    }

    public String getNo() 
    {
        return no;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setNumber(Long number) 
    {
        this.number = number;
    }

    public Long getNumber() 
    {
        return number;
    }
    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }
    public void setWayPrice(BigDecimal wayPrice) 
    {
        this.wayPrice = wayPrice;
    }

    public BigDecimal getWayPrice() 
    {
        return wayPrice;
    }
    public void setMarketPrice(BigDecimal marketPrice) 
    {
        this.marketPrice = marketPrice;
    }

    public BigDecimal getMarketPrice() 
    {
        return marketPrice;
    }
    public void setTotalWayPrice(BigDecimal totalWayPrice)
    {
        this.totalWayPrice = totalWayPrice;
    }

    public BigDecimal getTotalWayPrice()
    {
        return totalWayPrice;
    }
    public void setTotalMarketPrice(BigDecimal totalMarketPrice) 
    {
        this.totalMarketPrice = totalMarketPrice;
    }

    public BigDecimal getTotalMarketPrice() 
    {
        return totalMarketPrice;
    }
    public void setBuyTime(Date buyTime) 
    {
        this.buyTime = buyTime;
    }

    public Date getBuyTime() 
    {
        return buyTime;
    }
    public void setArriveTime(Date arriveTime) 
    {
        this.arriveTime = arriveTime;
    }

    public Date getArriveTime() 
    {
        return arriveTime;
    }
    public void setDeleted(Integer deleted) 
    {
        this.deleted = deleted;
    }

    public Integer getDeleted() 
    {
        return deleted;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("no", getNo())
            .append("name", getName())
            .append("number", getNumber())
            .append("unit", getUnit())
            .append("wayPrice", getWayPrice())
            .append("marketPrice", getMarketPrice())
            .append("totalWayPrice", getTotalWayPrice())
            .append("totalMarketPrice", getTotalMarketPrice())
            .append("buyTime", getBuyTime())
            .append("arriveTime", getArriveTime())
            .append("updateTime", getUpdateTime())
            .append("createTime", getCreateTime())
            .append("deleted", getDeleted())
            .toString();
    }
}
